<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});
Route::get('test', 'test/index');
Route::get('hello/:name', 'index/hello');
Route::get('form1', 'form/form1');
Route::get('form2', 'form/form2');

//登录
Route::get('login', 'Login/login')->name('login');
Route::post('do_login', 'Login/doLogin')->name('do_login');
Route::get('logout', 'Login/logout')->name('logout');

Route::group(['middleware' => ['LoginCheck']], function (){
    //首页
    Route::get('/', 'Index/index')->name('index');
    //修改密码
    Route::get('password/show', 'User/password_show')->name('password/show');

    //字典
    Route::get('option/all', 'Option/all')->name('option/all');
    Route::get('option/clear', 'Option/clear')->name('option/clear');

    Route::get('patient/show', 'Patient/show')->name('patient/show');
    Route::get('patient/lists', 'Patient/lists')->name('patient/lists');

    Route::get('jibing/show', 'Jibing/show')->name('jibing/show');

    Route::get('kspf/show', 'Patient/kspf_show')->name('kspf/show');

    Route::get('shiyanshi/show', 'Shiyanshi/show')->name('shiyanshi/show');

    Route::get('renticeliang/show', 'Renticeliang/show')->name('renticeliang/show');

    Route::get('pgsgahuanzhe/show', 'PgsgaHuanzhe/show')->name('pgsgahuanzhe/show');

    Route::get('pgsgayisheng/show', 'PgsgaYisheng/show')->name('pgsgayisheng/show');

    Route::get('nrs2002/show', 'Nrs2002/show')->name('nrs2002/show');

    Route::get('shzl/show', 'Patient/shzl_show')->name('shzl/show');

    Route::get('lcjj/show', 'Patient/lcjj_show')->name('lcjj/show');
});

//修改密码
Route::post('password/reset', 'User/password_reset')->name('password/reset');

//病人
Route::get('patient/info', 'Patient/info')->name('patient/info');
Route::get('patient/ajax_lists', 'Patient/ajax_lists')->name('patient/ajax_lists');
Route::post('patient/add', 'Patient/add')->name('patient/add');
Route::post('patient/update', 'Patient/update')->name('patient/update');

//疾病
Route::get('jibing/info', 'Jibing/info')->name('jibing/info');
Route::get('jibing/ajax_lists', 'Jibing/ajax_lists')->name('jibing/ajax_lists');
Route::post('jibing/add', 'Jibing/add')->name('jibing/add');
Route::post('jibing/update', 'Jibing/update')->name('jibing/update');

//卡氏评分
Route::post('kspf/update', 'Patient/kspf_update')->name('kspf/update');

//实验室
Route::get('shiyanshi/info', 'Shiyanshi/info')->name('shiyanshi/info');
Route::get('shiyanshi/ajax_lists', 'Shiyanshi/ajax_lists')->name('shiyanshi/ajax_lists');
Route::post('shiyanshi/add', 'Shiyanshi/add')->name('shiyanshi/add');
Route::post('shiyanshi/update', 'Shiyanshi/update')->name('shiyanshi/update');

//人体测量
Route::get('renticeliang/info', 'Renticeliang/info')->name('renticeliang/info');
Route::get('renticeliang/lists', 'Renticeliang/lists')->name('renticeliang/lists');
Route::get('renticeliang/ajax_lists', 'Renticeliang/ajax_lists')->name('renticeliang/ajax_lists');
Route::post('renticeliang/add', 'Renticeliang/add')->name('renticeliang/add');
Route::post('renticeliang/update', 'Renticeliang/update')->name('renticeliang/update');

//PG-SGA病人
Route::get('pgsgahuanzhe/info', 'PgsgaHuanzhe/info')->name('pgsgahuanzhe/info');
Route::get('pgsgahuanzhe/ajax_lists', 'PgsgaHuanzhe/ajax_lists')->name('pgsgahuanzhe/ajax_lists');
Route::post('pgsgahuanzhe/add', 'PgsgaHuanzhe/add')->name('pgsgahuanzhe/add');
Route::post('pgsgahuanzhe/update', 'PgsgaHuanzhe/update')->name('pgsgahuanzhe/update');

//PG-SGA医生
Route::get('pgsgayisheng/info', 'PgsgaYisheng/info')->name('pgsgayisheng/info');
Route::get('pgsgayisheng/ajax_lists', 'PgsgaYisheng/ajax_lists')->name('pgsgayisheng/ajax_lists');
Route::post('pgsgayisheng/add', 'PgsgaYisheng/add')->name('pgsgayisheng/add');
Route::post('pgsgayisheng/update', 'PgsgaYisheng/update')->name('pgsgayisheng/update');

//nrs2002
Route::get('nrs2002/info', 'Nrs2002/info')->name('nrs2002/info');
Route::get('nrs2002/ajax_lists', 'Nrs2002/ajax_lists')->name('nrs2002/ajax_lists');
Route::post('nrs2002/add', 'Nrs2002/add')->name('nrs2002/add');
Route::post('nrs2002/update', 'Nrs2002/update')->name('nrs2002/update');

//生活质量量表
Route::get('shzl/info', 'Patient/shzl_info')->name('shzl/info');
Route::post('shzl/update', 'Patient/shzl_update')->name('shzl/update');

//临床结局
Route::get('lcjj/info', 'Patient/lcjj_info')->name('lcjj/info');
Route::post('lcjj/update', 'Patient/lcjj_update')->name('lcjj/update');


return [

];
